<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1">
    <meta content="telephone=no" name="format-detection"/>
    <script>
        var isJsBridgeReady = false;
        var isZHKIOS= false;
        function readyFunc(device){
            isJsBridgeReady = true;
            if(device == 'true'){
              isZHKIOS = true;
            }
        }
    </script>
    <title>其他设置</title>
    <script src="../base/recalc.js"></script>
    <link rel="stylesheet" href="../css/pro_app.min.css"/>
    <link rel="stylesheet" href="../lib/yz-sm.min.css">

</head>
<body>
<div class="page-group">
    <div class="page create_other_setting" id="createOtherSettingPage">
        <script type="text/template" id="otherSettingTPL">
            <div class="form-wrapper">
                    <div class="form-title">
                        活动规则
                    </div>
                    <ul>
                        <li>
                            <span>活动名称</span>
                            <div>
                                <input type="text" class="input-active-name activityName" placeholder="请输入活动名称" required value="{{otherSetting.activityName}}" maxlength="32" />
                                <i class="zhk-list_gb"></i>
                            </div>
                        </li>
                        <li>
                            <span>活动对象</span>
                            <div class="disabled-text">
                                <p>{{otherSetting.activityTarget}}</p>
                            </div>
                        </li>
                        <li class="suitShopsSelect">
                            <span>适用门店</span>
                            <div class="disabled-form-item">
                                {{if otherSetting.suitShopsSelect == 1 && otherSetting.activityType!='48'}}
                                    <a href="javascript:void(0)">所有门店 <i class="zhk-list_rarrow"></i></a>
                                {{else if otherSetting.suitShopsSelect == 1 && otherSetting.activityType == '48'}}
                                    <a href="javascript:void(0)">会员卡适用门店 <i class="zhk-list_rarrow"></i></a>
                                {{else}}
                                    <a href="javascript:void(0)">已选择{{otherSetting.suitShops?otherSetting.suitShops.split(",").length:0}}家门店<i class="zhk-list_rarrow"></i></a>
                                {{/if}}
                            </div>
                        </li>
                        <li>
                            <span>发放数量</span>
                            <div>
                                <div class="switch-label" id="total-deadline" data-bindPropName="budgetValueSelect">
                                    {{if otherSetting.budgetValueSelect == 1}}
                                    <span>不限制</span>
                                    {{else}}
                                    <span>限制</span>
                                    {{/if}}
                                    <i class="zhk-list_rarrow"></i>
                                </div>
                                {{if otherSetting.budgetValueSelect == 1}}
                                <p style="display:none;">
                                    <input type="number" placeholder="请填写" class="budgetValue" maxlength="9" />张
                                </p>
                                {{else}}
                                <p>
                                    <input type="number" placeholder="请填写" class="budgetValue" maxlength="9" value="{{otherSetting.budgetValue}}"/>张
                                </p>
                                {{/if}}

                            </div>
                        </li>
                        <li>
                            <span>累计领取上限</span>
                            <div>
                                <div class="switch-label" data-disabled="{{otherSetting.userWinCountSelectDisabled?'true':'false'}}" id="total-deadline"  data-bindPropName="userWinCountSelect">
                                    {{if otherSetting.userWinCountSelect==1}}
                                    <span>不限制</span>
                                    {{else}}
                                    <span>限制</span>
                                    {{/if}}

                                    {{if !otherSetting.userWinCountSelectDisabled}}
                                    <i class="zhk-list_rarrow"></i>
                                    {{/if}}
                                </div>
                                {{if otherSetting.userWinCountSelect==1}}
                                <p style="display:none;">
                                    <input type="number" placeholder="请填写" class="userWinCount"/>张
                                </p>
                                {{else}}
                                <p style="">
                                    <input type="number" data-disabled="{{otherSetting.userWinCountSelectDisabled?'true':'false'}}" placeholder="请填写"  class="userWinCount" value="{{otherSetting.userWinCount}}"/>张
                                </p>
                                {{/if}}
                            </div>
                        </li>
                        <li>
                            <span>单日领取上限</span>
                            <div>
                                <div class="switch-label" data-disabled="{{otherSetting.userWinFrequencySelectDisabled?'true':'false'}}" id="total-deadline" data-bindPropName="userWinFrequencySelect">
                                    {{if otherSetting.userWinFrequencySelect == 1}}
                                    <span>不限制</span>
                                    {{else}}
                                    <span>限制</span>
                                    {{/if}}

                                    {{if !otherSetting.userWinFrequencySelectDisabled}}
                                    <i class="zhk-list_rarrow"></i>
                                    {{/if}}
                                </div>
                                {{if otherSetting.userWinFrequencySelect == 1}}
                                <p style="display:none;">
                                    <input type="number" placeholder="请选择" class="userWinFrequencyValue" />张
                                </p>
                                {{else}}
                                <p style="">
                                    <input type="number" placeholder="请选择" data-disabled="{{otherSetting.userWinCountSelectDisabled?'true':'false'}}" class="userWinFrequencyValue" value="{{otherSetting.userWinFrequencyValue}}"/>张
                                </p>
                                {{/if}}
                            </div>
                        </li>
                        <li>
                            <span>发放方式</span>
                            <div class="disabled-text">
                                {{otherSetting.obtainType}}
                            </div>
                        </li>

                    </ul>
                    <div class="form-title">
                        券规则
                    </div>
                    <ul>

                        {{if otherSetting.extInfo.showVoucherName}}
                        <li>
                            <span>券名称</span>
                            <div>
                                <input type="text" class="input-active-name voucherName" value="{{otherSetting.voucherName}}" maxlength="20" placeholder="请输入" required />
                                <i class="zhk-list_gb"></i>
                            </div>
                        </li>
                        {{/if}}

                        {{if otherSetting.extInfo.showVoucherImgUrl}}
                        <li>
                            <span>券图片</span>
                            <div class='voucherImg'>
                                {{if !otherSetting.voucherImgUri}}
                                <span style="display:inline-block">非必选项</span>
                                <img style="display:none" class='voucherImgPreviewUri' src="{{otherSetting.voucherImgPreviewUri}}" alt=""/>
                                {{else}}
                                <span style="display:none">非必选项</span>
                                <img class='voucherImgPreviewUri' src="{{otherSetting.voucherImgPreviewUri}}" alt=""/>
                                {{/if}}

                                <i class="zhk-list_rarrow"></i>
                            </div>
                        </li>
                        {{/if}}
                        <li>
                            <span>品牌名称</span>
                            <div>
                                <input type="text" class="input-active-name voucherSubTitle" value="{{otherSetting.voucherSubTitle}}" maxlength="20" placeholder="商家品牌"/>
                            </div>
                        </li>
                        <li>
                            <span>品牌logo</span>
                            <div class='voucherLogo'>
                                <div class="switch-label">
                                    <img class='voucherLogoPreviewUri' src="{{otherSetting.voucherLogoPreviewUri}}" alt="">
                                    <i class="zhk-list_rarrow"></i>
                                </div>

                            </div>
                        </li>
                        <li>
                            <span>生效方式</span>
                           <div>
                                <div class="switch-label" data-disabled="{{otherSetting.voucherEffectTypeDisabled?'true':'false'}}" id="effect-type" data-bindPropName="voucherEffectType">
                                <span>
                                {{if otherSetting.voucherEffectType == 'IMMEDIATELY'}}
                                当日生效
                                {{else}}
                                次日生效
                                {{/if}}
                                </span>
                                {{if !otherSetting.voucherEffectTypeDisabled}}
                                <i class="zhk-list_rarrow"></i>
                                {{/if}}
                                </div>
                            </div>
                        </li>
                        <li>
                            <span>是否可转增</span>
                            <div>
                                <label class="label-switch" id="voucherDonateFlagLabelSwitch" data-disabled="{{otherSetting.voucherDonateFlagDisabled?'true':'false'}}">
                                    {{if otherSetting.voucherDonateFlag==1}}
                                        <input type="checkbox" class="voucherDonateFlag" checked>
                                    {{else}}
                                        <input type="checkbox" class="voucherDonateFlag">
                                    {{/if}}

                                    <div class="checkbox"></div>
                                </label>
                            </div>
                        </li>
                        <li>
                            <span>使用说明</span>
                            <div class="voucherUseInstructions">
                                <a href="#">
                                    <span class="over-hide">{{otherSetting.voucherUseInstructions?otherSetting.voucherUseInstructions.join(","):""}}</span>
                                    <i class="zhk-list_rarrow"></i>
                                </a>
                            </div>
                        </li>
                    </ul>
                </div>
        </script>

        <div class="scroll-view">
            <ul class="header">
                <li class="left"><a href="javascript:void(0)" class="back"><i class="zhk-nav_back"></i>返回</a></li>
                <li class="middle">其他设置</li>
                <li class="right"></li>
            </ul>
            <div class="page-body">

            </div>
        </div>
    </div>
</div>
</div>
<script src="../lib/zepto.min.js"></script>
<script src="../lib/yz-sm.min.js"></script>
<script src="../lib/template.js"></script>
<script src="../lib/swiper.min.js"></script>
<script src="../lib/echarts.common.min.js"></script>
<script src="../lib/mobiscroll/mobiscroll.custom-2.17.0.min.js"></script>

<script src="../base/recalc.js" compress="../base/base.js"></script>
<script src="../base/dialog.js" compress="../base/base.js"></script>
<script src="../base/common.js" compress="../base/base.js"></script>
<script src="../base/appservice.js" compress="../base/base.js"></script>
<script src="../base/h5service.js" compress="../base/base.js"></script>
<script src="../js/createActivityOtherSettingA.js" compress="../js/main.js"></script>
<script src="../js/createActivityOtherSettingC.js" compress="../js/main.js"></script>
</body>

</html>
